import BaseFlowNode from '../BaseFlowNode'
import {assignInWith} from 'lodash'
import {FlowNodeType} from "../../types/index";
import type {FlowNodePropsType,FlowNodeFormConfigType} from "../../types/index";

export default class StartNode extends BaseFlowNode {
    constructor(props:Partial<FlowNodePropsType>={}) {
      let basePops:FlowNodePropsType= {
        header: { icon: 'icon-faqiren', title: '发起人', bgColor: 'rgb(128, 146, 156)',color:'white' },
        description: '流程从本节点开始'
    }
        super(
            '开始节点',
            FlowNodeType.START,
            assignInWith(basePops,props),
            {}
        )
    }
}
